﻿namespace ConsoleApp1
{
    //异步成员
    

    internal class Program
    {
        static async Task<int> GetDataAsync()
        {
            await Task.Delay(2000); // 模拟异步操作
            return 42;
        }

        static async Task Main(string[] args)
        {
            int result = await GetDataAsync();
            Console.WriteLine("Data: " + result);
        }
    }
}